package org.alex.jdk8.lambda;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class CompareT1 {
	public static void main(String[] args) {
		List<String> list = Arrays.asList("root", "su", "super", "clar", "carl");
		Collections.sort(list, (String a, String b) -> {
			return a.compareTo(b);
		});
		list.forEach((a)-> {
			System.out.println(a);
		});
	}
}
